package com.yjd.comm.fundservice.enums;

/**
 * 资金渠道
 * Created by yangchangyan on 2018/1/25.
 */
public enum FundChannelEnum {

    QIAN_KANG("QIAN_KANG","乾康")
    ;

    private String code;
    private String desc;

    public static FundChannelEnum parse(String code) {
        for (FundChannelEnum v : FundChannelEnum.values()) {
            if (v.getCode().equals(code)) {
                return v;
            }
        }
        return null;
    }

    private FundChannelEnum(String code,String desc){
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
